﻿@model mvcForum.Web.ViewModels.Update.UpdateMessageViewModel
@using CreativeMinds.MVC.Common.Helpers
@using mvcForum.Web.Helpers;
@{
	ViewBag.Title = ForumHelper.GetString("EditMessage.Title", new { Subject = Model.Subject });
	Layout = "~/themes/black/views/Shared/forumlayout.cshtml";
}
	<!-- Views/Forum/EditMessage.aspx -->
	@Html.Partial("Breadcrumb", Model.Path)
	<a name="start_here"></a>
	<h2>@Html.RouteLink(Model.TopicTitle, "ShowTopic", new RouteValueDictionary { { "id", Model.TopicId }, { "title", Url.URLFriendlyString(Model.TopicTitle) } } )</h2>
@using (Html.BeginForm()) {
		@Html.HiddenFor(t => t.Id)
	<div class="panel" id="postingbox">
		<div class="block-header"><span><span></span></span></div>
		<div class="block-content">
			<div class="block-inner">	
				<h3>Edit a reply</h3>
				<fieldset class="fields1">
					<dl style="clear: left;">
						<dt>@Html.LabelFor(t => t.Subject)</dt>
						<dd>@Html.TextBoxFor(t => t.Subject, new { @class = "inputbox autowidth", size = 45 } )
						<!--<input type="text" name="subject" id="subject" size="45" maxlength="60" tabindex="2" value="" class="inputbox autowidth" />--></dd>
					</dl>
					<div id="message-box">
						@Html.TextAreaFor(t => t.Body, new { @class = "inputbox" } )
					</div>
				</fieldset>
				<div class="block-clear"></div>
			</div>
		</div>
		<div class="block-footer"><span><span></span></span></div>
	</div>
	
	<div class="panel bg2">
		<div class="block-header"><span><span></span></span></div>
		<div class="block-content">
			<div class="block-inner">
				<fieldset class="submit-buttons">
<!--			<input type="submit" accesskey="k" tabindex="7" name="save" value="Save" class="button2" />&nbsp; 
			<input type="submit" tabindex="5" name="preview" value="Preview" class="button2" onclick="document.getElementById('postform').action += '#preview';" />&nbsp;
-->					<input type="submit" accesskey="s" tabindex="6" name="post" value="Submit" class="button1 default-submit-action" />&nbsp;
				</fieldset>
				<div class="block-clear"></div>
			</div>
		</div>
		<div class="block-footer"><span><span></span></span></div>
	</div>
}
	<script type="text/javascript">
<!--
		$(document).ready(function () {
			$('textarea').markItUp(mySettings);
		});
-->
	</script>
